package com.example.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.entity.Category;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

public interface ICategoryService extends IService<Category> {

    boolean save(Category entity);

    boolean updateById(Category entity);

    boolean removeById(Category entity);

    boolean removeBatchByIds(Collection<?> list);

    List<Category> list();

    Category getById(Serializable id);

    <E extends IPage<Category>> E page(E page, Wrapper<Category> queryWrapper);

    List<Category> bookCount();
}

